<?php
namespace core;
defined('BY_JYA') or exit('error');
/*
	记录
*/
class corelog{
	public function oper_log($remark='',$id=''){
		global $_AR;
		$params=links($_AR['access_json']);
		$insert=array(
			'uniacid'=>$_SESSION['uniacid'],
			'uid'=>$_SESSION['uid'],
			'this'=>$_SESSION['this'],
			'os'=>$_SESSION['os'],
			'plugin'=>$params['plugin'],
			'action'=>$params['action'],
			'op'=>$params['op'],
			'query'=>$params['query'],
			'remark'=>$remark,
			'createtime'=>TIMESTAMP
		);
		pdo_insert('core_oper_log',$insert);
		return '';
	}
}
